// Copyright (c)  YISH. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

using System.Text.RegularExpressions;

namespace NSQL.Types
{
    public class NumericType : DataType
    {
        private static readonly Regex Regex = new Regex(@"(?<name>(numeric|decimal))((?<m>\d+)\s*,\s*(?<d>\d+))",
            RegexOptions.Compiled | RegexOptions.IgnoreCase);
        public int M { get; set; } = -1;
        public int D { get; set; } = -1;
        public override bool TryMatch(string type, out DataType value)
        {
            throw new System.NotImplementedException();
        }
    }
}